﻿@{Layout = "~/Views/Shared/_Layout.cshtml";}

<h2>Updating Password</h2>
    @if (ViewData["message"] != null)
    {
        <h1>@ViewData["message"]</h1>
    }
   @using (Html.BeginForm("UpdatePasswordForUser", "User", FormMethod.Post))
    {
    @Html.Label("Enter Old Password")
    <br /><input type="password" name="inOldPasswd" /><br />
    @Html.Label("Enter New Password")
    <br /><input type="password" name="inNewPasswd" /><br />
    @Html.Label("Repeat New Password") 
    <br /><input type="password" name="inNewPasswdRepeat" />
    if(ViewData.Model != null)
    {
    <input type="hidden" name="inUserID" value="@ViewData.Model.ID" />
            }
    <input type="submit" />
}